﻿namespace dPet.Domain.Models
{
	using Hangerd.Entity;

	public class InventoryAlarmItem : EntityBase
	{
		#region Public Properties

		/// <summary>
		/// 所属医院ID
		/// </summary>
		public string HospitalId { get; private set; }

		/// <summary>
		/// 商品ID
		/// </summary>
		public string ProductId { get; private set; }

		/// <summary>
		/// 商品条码
		/// </summary>
		public string ProductBarcode { get; private set; }

		/// <summary>
		/// 商品名称
		/// </summary>
		public string ProductName { get; private set; }

		/// <summary>
		/// 告警类型
		/// </summary>
		public InventoryAlarmType AlarmType { get; private set; }

		/// <summary>
		/// 详情
		/// </summary>
		public string Detail { get; private set; }

		#endregion

		#region Constructors

		private InventoryAlarmItem() { }

		public InventoryAlarmItem(Product product, InventoryAlarmType alarmType, string detail)
		{
			this.HospitalId = product.HospitalId;
			this.ProductId = product.Id;
			this.ProductBarcode = product.Barcode;
			this.ProductName = product.Name;
			this.AlarmType = alarmType;
			this.Detail = detail;
		}

		#endregion

		#region Public Methods

		#endregion
	}
}
